<script>
  function test(json) {
    console.log(json);
  }
</script>
<script src="http://localhost:8082/test.php"></script>